#include<iostream>
using namespace std;
int hehe(int n);

int main()
{
	int kg;
	
	cout << "input by kg:" << endl;
	cin >> kg;
	int g = hehe(kg);
	cout << kg <<" kg = " << g <<" g." <<endl;
	
	return 0;
}

int hehe(int n)
{
	return 1000 * n;
}
